#pragma once

#include <QObject>
#include <QThread>
#include <QTimer>
//#include <zmq.h>

class ZmqServer : public QObject
{
	Q_OBJECT

public:
	explicit ZmqServer(QObject* parent = nullptr);

	void SendToClient(const std::string& message);

private:
	bool stop_thread;
	void* context;
	void* publisher;
	QTimer* heart_timer;
public slots:
	void SlotStartServer();
	void SlotStopServer();
};

